<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>安装包管理</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
function uploadsucess(response){
	var fileLog = response.obj;
	$("#fileLogId").val(fileLog.id);
	$("#fileNameTd").html(fileLog.oldFileName);
	$("#fileNameTr").show();
}
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" layout="table" action="cbsInstallPackageController.do?doAdd" tiptype="1">
     	<input id="fileLogId" name="fileLogId.id" type="hidden" />
		<table style="width: 545px;" cellpadding="0" cellspacing="1" class="formtable" id="packageTable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							上传:
						</label>
					</td>
					<td class="value">
				     	<t:upload name="" id="uploadAppPackage" uploader="cbsInstallPackageController.do?importPackage" auto="true" formData="Filedata" dialog="false"
				     		extend="*.ipa;*.apk" onUploadSuccess="uploadsucess" />
					</td>
				</tr>
				<tr id="fileNameTr" style="display: none;height:30px;">
					<td align="right">
						<label class="Validform_label">文件名:</label>
					</td>
					<td class="value" id="fileNameTd">
					</td>
				</tr>
			</table>
		</t:formvalid>
 </body>
